package day17.homework;

public class Cat extends Animal {
    private String color;

    public Cat(String name, String color) {
        super(name);
        this.color = color;
    }

    @Override
    public void makeSound() {
        System.out.println("猫" + "发出喵喵叫声");
    }

    @Override
    public void move() {
        System.out.println("猫" + "四腿爬行");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}